package com.doge.controller.admin;

import com.doge.bean.base.BaseData;
import com.doge.bean.base.BaseRespVo;
import com.doge.bean.vo.region.RegionResultVo;
import com.doge.service.admin.region.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:项目二商城管理行政区域
 * @author: Mr.Jiang
 * @create: 2021-11-29 21:35
 **/
@RestController
@RequestMapping("admin/region")
public class RegionController {


    @Autowired
    RegionService regionService;

    @RequestMapping("list")
    public BaseRespVo list(){
        Object data;
        data =regionService.list();
        data = regionService.list2();
        return BaseRespVo.ok(data);
    }
}
